package com.example.baseapp.config;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * EncryptProperties class
 * 加密配置
 * @author zhangl
 * @date 2022/3/25 11:40
 */
@Component
@ConfigurationProperties(prefix = "encrypt")
@Data
public class EncryptProperties {
    @Length(min = 8)
    private String encryptKey;
    private String encryptType;
}
